#ifndef __RINGBUFF_H_
#define __RINGBUFF_H_
#include "stdint.h" //uint8_t 等
typedef unsigned char u8;
typedef unsigned short u16;
//extern void RingBuff_Init(void);
//extern u8 Write_RingBuff(u8 data);
//extern u8 Read_RingBuff(u8 *rData);
//全新句柄抽象风格 上面的不用了
typedef struct
{
	void    (*Init)(void);
	uint8_t (*write) (uint8_t data);
	uint8_t (*read)  (uint8_t **rData,u16 *len);
}FIFO_Type;

extern FIFO_Type FIFO;
#endif
